﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Lokad.Monitoring.Persistence.Models.RsmDocument>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Responses retrieved for <%= ViewData["endpointName"] %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Responses retrieved for [<%= ViewData["endpointName"] %>]</h2>

    <table>
        <tr>
            <th></th>
            <th>
                Retrieved
            </th>
            <th>
                Messages
            </th>
            <th>
                Indicators
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%--<%= Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })%>--%>
            </td>
            <td>
                <%= Html.Encode(item.Retrieved) %>
            </td>
            <td>
                <%= Html.Encode(item.Messages.Count) %>
            </td>
            <td>
                <%= Html.Encode(item.Indicators.Count) %>
            </td>
        </tr>
    
    <% } %>

    </table>

</asp:Content>

